home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / QuickTime VR / MacOS / QuickDraw™ 3D 1.0.6F4 SDK / Development / 3DMF parser / 1.0 version / MF3DPC / MFTEXTST.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-07  |  2.3 KB  |  71 lines  |  [TEXT/dosa]

  1. #ifndef    MF3D_TEXTSTRINGS_H
  2. #define    MF3D_TEXTSTRINGS_H
  3. /*==============================================================================
  4.  *
  5.  *    File:        MFTEXTST.H
  6.  *
  7.  *    Function:    Miscellaneous text snippets required for I/O
  8.  *
  9.  *    Version:    Metafile:    Version 1.0 3DMF files
  10.  *                Package:    Release #2 of this code
  11.  *
  12.  *    Author(s):    Rick Wong (RWW), Duet Development Corp.
  13.  *                John Kelly (JRK), Duet Development Corp.
  14.  *
  15.  *    Copyright:    (c) 1995 by Apple Computer, Inc., all rights reserved.
  16.  *
  17.  *    Change History (most recent first):
  18.  *        FB7_JRK    Pragma macros
  19.  *        Fabio    Changed file name to 8 characters
  20.  *        F3A_RWW    TOC stuff works.
  21.  *        F2K_RWW    File created.
  22.  *==============================================================================
  23.  */
  24. #if defined(applec) || defined(__MWERKS__) || defined(THINK_C)
  25. #pragma once
  26. #endif
  27.  
  28. /* Maximum length of format passed to MF3D_ScanTextFile */
  29. #define    kMF3D_MaxFormatLength    90
  30.  
  31. /* List of white space characters (std C) */
  32. #define    kMF3D_WhitespaceList    " \f\n\r\t\v"
  33. #define    kMF3D_EndOfLineList        "\n\r"
  34. #define    kMF3D_HexCharList        "0123456789ABCDEFabcdef"
  35. #define    KMF3D_TextCharList        "0123456789"                    \
  36.                                 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"    \
  37.                                 "abcdefghijklmnopqrstuvwxyz"
  38. #define    kMF3D_BeginCharStr        "("
  39. #define    kMF3D_EndCharStr        ")"
  40. #define    kMF3D_CommentLineStr    "#"
  41. #define    kMF3D_StringBeginStr    "\""
  42. #define    kMF3D_StringEndStr        kMF3D_StringBeginStr
  43. #define    kMF3D_OrCharStr            "|"
  44. #define    kMF3D_ReferencePtrStr    ">"
  45. #define    kMF3D_LabelCharStr        ":"
  46. #define    kMF3D_NoTOCPtrStr        "nextTOC"
  47. #define    kMF3D_DefaultTOCPtrStr    "toc"
  48. #define    kMF3D_DefaultLabelStr    "MF3DLabel_"
  49. #define    kMF3D_StringEscapeStr    "\\"
  50.  
  51. #define    kMF3D_HexCharListLen    22            /* strlen(kMF3D_HexCharList)    */
  52. #define    kMF3D_MaxDefaultLabelLen    64        /* arbitrarily large            */
  53.  
  54. /* Hex string prefix */
  55. #define    kMF3D_RawDataHexPrefix    "0x"
  56. #define    kMF3D_RawDataHexPrefixLen    2
  57.  
  58. /* Used during preprocessing before we can use MF3D_ScanTextBuffer */
  59. #define    kMF3D_BeginChar            '('
  60. #define    kMF3D_EndChar            ')'
  61. #define    kMF3D_FilePtrChar        '>'
  62. #define    kMF3D_LabelChar            ':'
  63. #define    kMF3D_CommentLineChar    '#'
  64. #define    kMF3D_StringBeginChar    '"'
  65. #define    kMF3D_StringEndChar        kMF3D_StringBeginChar
  66. #define    kMF3D_StringEscapeChar    '\\'
  67. #define    kMF3D_NewLineChar        '\n'
  68. #define    kMF3D_TabChar            '\t'
  69.  
  70. #endif
  71.